package com.iflytek.sbd.demo.daili.dongtaidaili.cglib;

/**
 * @program: sbd
 * @description: 真实类
 * @author: 陈英俊
 * @create: 2022-01-04 16:38
 */
public class ReallyService {
    public ReallyService() {
        System.out.println("真实类初始化...");
    }
    /**
     * 该方法不能被子类覆盖，Cglib是无法代理final修饰的方法的
     */
    final public String sayOthers(String name) {
        System.out.println("sayOthers..." + name);
        return null;
    }

    public void sayHello() {
        System.out.println("sayHello...");
    }
}
